package org.bsplus.domain;

import javax.persistence.Basic;
import javax.persistence.Entity;


@Entity
public class Role extends AbstractEntity
{
    public static final Role USER = new Role(1L, "User");
    public static final Role ADMIN = new Role(2L, "Admin");

    @Basic(optional = false)
    private String description;
    
    public Role()
    {
    }

    public Role(Long id, String description)
    {
        setId(id);
        setDescription(description);
    }

    /**
     * @return the description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description)
    {
        this.description = description;
    }


}
